﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BacklogParser.Models
{
    public class SearchReport
    {
        public SearchReport()
        {
            this.SearchReportPublication = new List<DocumentId>();
        }

        public string DateMailed { get; set; }
        public string DeclarationOfNoSearch { get; internal set; }
        public string Id { get; internal set; }
        public string Office { get; internal set; }
        public List<DocumentId> SearchReportPublication { get; set; }
        public string SearchType { get; internal set; }

        public override string ToString()
        {
            var builder = new StringBuilder();
            builder.AppendLine("DateMailed                  " + DateMailed);
            builder.AppendLine("DeclarationOfNoSearch       " + DeclarationOfNoSearch);
            builder.AppendLine("Id                          " + Id);
            builder.AppendLine("Office                      " + Office);
            builder.AppendLine("SearchType                  " + SearchType);
            SearchReportPublication.ForEach(x => builder.AppendLine(x.ToString()));

            return builder.ToString();
        }
    }


}
